package com.whw.springboot.bcucb;

import org.mybatis.spring.annotation.MapperScan;

import org.springframework.boot.SpringApplication;


import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.boot.builder.SpringApplicationBuilder;


import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@MapperScan(value = "com.whw.springboot.bcucb.mapper")

@SpringBootApplication
public class BcucbApplication  extends SpringBootServletInitializer {

    public static void main(String[] args) {

        SpringApplication.run(BcucbApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder applicationBuilder){
        return applicationBuilder.sources(BcucbApplication.class);
    }



}
